﻿<%@ Page Language="C#" %>
<%
CoreFrame.Business.SysLoginRight userSession = (CoreFrame.Business.SysLoginRight)Session["RoleUser"];

string strUrl = Request.ServerVariables["SCRIPT_NAME"];

string sPort = Request.ServerVariables["SERVER_PORT"];
if (sPort != "80")
{
  strUrl = "http://" + Request.ServerVariables["SERVER_NAME"] + ":" + sPort + strUrl.Substring(0, strUrl.LastIndexOf("/"));
}
else
{
  strUrl = "http://" + Request.ServerVariables["SERVER_NAME"] + strUrl.Substring(0, strUrl.LastIndexOf("/"));
}
string WebRoot = strUrl;
%>
<!DOCTYPE html "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<title></title>
<link href="css/default.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../../WebPlugin/jquery-easyui/themes/default/easyui.css"/>
<link rel="stylesheet" type="text/css" href="../../../WebPlugin/jquery-easyui/themes/icon.css"/>
<link href="css/zh-cn-system.css" rel="stylesheet" type="text/css" />
<link href="css/maineasyui.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="../../../WebPlugin/jquery-easyui/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../../../WebPlugin/jquery-easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../../WebPlugin/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
<script src="../../../WebPlugin/jquery-easyui/JQueryCommon.js" type="text/javascript"></script>
<script src="../PageJS/Login.js" type="text/javascript"></script>

<%
  if (Session["RoleUser"] == null)
  {
%>
<script language="javascript">
    window.location.href = "login.html";
</script>
<%
  Response.End();
  }
%>

<script type="text/javascript">

var default_url;

var sessionId = '<%=Session["AspNetsessionId"]%>';
var empId = '<%=userSession.EmpId%>';
var userId = '<%=userSession.UserId%>';
var deptId = '<%=userSession.DeptId%>';
var workId = '<%=userSession.WorkId%>';
var empName='<%=userSession.EmpName%>';
var deptName = '<%=userSession.DeptName%>';
var workName = '<%=userSession.WorkName%>';

// 显示任务
function showTask(strEventTypeID)
{
	var datNow = new Date();
	var obj = top.famRMain;
	var sRandom = datNow.getUTCFullYear() + datNow.getUTCMonth() +
		datNow.getUTCDate() + datNow.getUTCHours() + datNow.getUTCMinutes() +
		datNow.getMinutes() + datNow.getUTCSeconds() + datNow.getUTCMilliseconds();
	var sUrl = "task.aspx?random=" + sRandom;

	if (strEventTypeID) {
		if (strEventTypeID.length > 0) {
			sUrl += "&EventTypeID=" + strEventTypeID;
		}
	}
	obj.location = unescape(sUrl);
}

function welcome() {
    $('#famRMain').attr('src', 'task.aspx');
}

function changepassword() {
    $('#famRMain').attr('src', 'SetPassWord.aspx');
}

// 帮助
function doHelp()
{
	alert("帮助");
}

// 退出
function doQuit()
{
    document.location = "login.html";
}

// 退出
function _doExit()
{
    document.location = "login.html";
}

function logOff()
{
	try
	{
		alert("登录超时，请重新登录");
		_doExit();
	}
	catch(e){}
}
function OpenDefaultUrl() {
    if(default_url!=null)
        window.open(default_url, 'newwindow', 'toolbar=no,resizable=yes ,menubar=no,location=n o, status=no')
}

function ChargeDept() {
    $('#dialog_changeDept').dialog('open');
}

$(function() {
    $('#sysOper label').hover(
      function() {
          $(this).addClass("bold");
      },
      function() {
          $(this).removeClass("bold");
      }
    );
});

</script>
<style>
.tree {
    font-size:14px;
}
.layout-split-west{
    <%--border-right:5px solid #334F60;--%>
}
.bold
{
	font-weight:bold;
}
.accord{font-size:12px; font-family:Tahoma,Verdana,微软雅黑,新宋体}
a{ color:Black; text-decoration:none;}
a:hover{ color:Red; text-decoration:underline;}
.easyui-accordion ul{list-style-type:none;margin:0px; padding:10px;}
.easyui-accordion ul li{ padding:0px;}
.easyui-accordion ul li a{line-height:24px;}
.easyui-accordion ul li div{margin:2px 0px;padding-left:10px;padding-top:2px;}
.easyui-accordion ul li div.hover{border:1px dashed #99BBE8; background:#E0ECFF;cursor:pointer;}
.easyui-accordion ul li div.hover a{color:#416AA3;}
.easyui-accordion ul li div.selected{border:1px solid #99BBE8; background:#E0ECFF;cursor:default;}
.easyui-accordion ul li div.selected a{color:#416AA3; font-weight:bold;}

.icon{padding:2px 9px; background:url(images/tabicons.png) no-repeat; }
.icon-nav{background-position: -100px -20px;}
</style>

</HEAD>
<BODY class="easyui-layout" >
 <div region="north" style="overflow: hidden; height: 92px; line-height: 20px;color: #fff;">
		<div class="header">
			<div class="logo lf"><img src="images/wylogo.png"  style="border:0px; width:400px; height:45px"/></div>
		    <div class="rt-col">
		    	<div class="tab_style white cut_line text-r">
				您好,[<%=userSession.EmpName%>]<span> | </span><a href="#" onclick="changepassword();" id="editpass">修改密码</a><span> | </span><a href="#" onclick="doQuit();"><img src="images/lockscreen.png" border=0>[退出]</a>
		        </div>
		    </div>
		    <div class="col-auto" id="moduleDiv">
		    </div>
		</div>
	</div>
<div region="west" title="二级菜单导航"  split="true" style="width:210px;padding:0px;"  border="false" >
    <div class="easyui-layout" fit="true" style="background:#ccc;" border="false" >
      <div  region="center" id="menuDiv"  border="false"   style="overflow:hidden;"  class="accord" >
    </div>
</div>
</div>
 <div region="center">
 <div  class="easyui-layout" border="false" fit="true">
    <div region="north" border=false style="height:30px;overflow:hidden;"> 
         <div class="home">当前位置：<a target="famRMain" href="task.aspx" onclick="fn_backpage();">回主界面</a> > <label id="current_page">当前页面</label></div>
    </div>
  
    <div id="main" region="center" border="false" style="overflow:hidden;">
       <iframe id="famRMain" name="famRMain" frameborder="no" height="100%" width="100%" src="task.aspx" scrolling="no"></iframe>
    </div>
   </div>
</div>
    <!-- window开始 -->
<div id="dialog_changeDept" title="切换部门" icon="icon-save" style="background:#fafafa;padding:10px;width:350px;height:200px;">    
     <form id="frmData" method="post">
      <table>
        <tr>
        <td>用户名称</td>
        <td ><%=userSession.EmpName%></td>
        </tr>
        <tr>
        <td>平台名称</td>
        <td ><%=userSession.WorkName%></td>
        </tr>
        <tr>
        <td>部门名称</td>
        <td><input id="selectDept" class="easyui-combobox" name="selectDept" style="width:200px;" valueField="DeptId" textField="Name" url="Controller.aspx?controller=LoadingMenuController&method=GetChangeDept" required="true"/></td>
        </tr>
      </table>
      </form>
</div>
 <!-- window结束 -->
</BODY>
</HTML>